﻿<template>
  <el-select v-model="value" clearable placeholder="请选择">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
      :disabled="item.disabled"
    >
    </el-option>
  </el-select>
</template>
<script>
  export default {
    data() {
      return {
        options: [
          {
            value: '选项1',
            label: '洗衣机',
          },
          {
            value: '选项2',
            label: '冰箱',
          },
          {
            value: '选项3',
            label: '空调',
            disabled: true,
          },
          {
            value: '选项4',
            label: '电视机',
          },
          {
            value: '选项5',
            label: '电磁炉',
          },
        ],
        value: '',
      }
    },
  }
</script>
